package com.msk.framework.web.authentication;

import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;

/**
 * @desc: 用户认证基类
 * @author: zlf
 * @date: 2022-07-22 21:18
 **/
public class CustomUsernamePasswordAuthenticationToken extends UsernamePasswordAuthenticationToken {

    private Integer userType;

    public CustomUsernamePasswordAuthenticationToken(Object principal, Object credentials, Integer userType) {
        super(principal, credentials);
        this.userType = userType;
    }

    public Integer getUserType() {
        return userType;
    }
}
